package com.base.api.dto.commodity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "商品分享信息请求参数")
public class GoodsShareDTO implements Serializable {
    @ApiModelProperty(value="商品编号", example = "0")
    @NotNull(message = "商品编号不能为空")
    private Integer id;

    @NotBlank(message = "用户id不能为空")
    @ApiModelProperty(value="用户id")
    private String userId;

    @ApiModelProperty("订单编号")
    private String orderNo;
}
